from django.contrib import admin
from django.urls import path

from rest_framework.routers import SimpleRouter
# from .views import PayOrderView, AliPyaView, SuccessView
from .views import PayOrderView, SuccessView

router = SimpleRouter()
router.register('pay', PayOrderView, 'pay')

urlpatterns = [
    # AliPyaView
    # path('test/', AliPyaView.as_view()),
    path('success/', SuccessView.as_view({'get': 'get', 'post': 'post'})),

]
urlpatterns += router.urls
